package com.workfeng.message.config.rabbitmq;

import org.springframework.stereotype.Component;

import java.io.Serializable;
import java.util.List;

/**
 * 公共消息类
 */
@Component
public class MessageVo implements Serializable {

    //消息的唯一标识
    private String bussinessKey;
    //消息内容
    private String message;
    //可以收到的用户id
    private List<Integer> userIds;
    // 自定义事件类型: todo 待办，taskPool 任务池， evaluate 评价
    private String type;
    // 字符串类型的消息接收时间
    private String date;
    // 事由/原因
    private String reason;
    // 状态 ： 默认 log， 成功 success，警告 warn，危险 error
    private String status;

    public String getBussinessKey() {
        return bussinessKey;
    }

    public void setBussinessKey(String bussinessKey) {
        this.bussinessKey = bussinessKey;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public List<Integer> getUserIds() {
        return userIds;
    }

    public void setUserIds(List<Integer> userIds) {
        this.userIds = userIds;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }
}
